package com.example.administrator.zhongyichou.view;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.StyleRes;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.zhongyichou.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by lichenyu on 2017/12/13.
 * 描述：
 */

public class PromiseDialog extends Dialog {
    @BindView(R.id.txt_know)
    TextView txtKnow;

    public PromiseDialog(@NonNull Context context) {
        this(context, 0);
    }

    public PromiseDialog(@NonNull Context context, @StyleRes int themeResId) {
        super(context, R.style.dialog);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.promise_dialog);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.txt_know)
    public void onViewClicked() {
        dismiss();
    }
}
